<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_blank
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/**
 * Super product options
 *
 * @see Mage_Catalog_Block_Product_View_Super_Config
 */
?>
<?php $_product = $this->getProduct() ?>
<?php if($_product->isSaleable()): ?>
    <p class="availability">
        <?php //echo $this->__('Availability') ?> 
		<?php
		$__mxwA = $_product->getStockItem()->getUseConfigManageStock();
		$__mxwB = $_product->getStockItem()->getManageStock();
		if($__mxwA=="0" && $__mxwB=="0" ): ?> 
			<span class="accepting-orders"><?php echo $this->__('Within 28 days' ) ?></span> 
		<?php else: ?>
			<!--<span class="in-stock"><?php echo $this->__('Ready to go') ?></span>	-->	
		<?php endif; ?>   	
    </p>
    
<?php else: ?>
    <p class="availability">
    	
		<input name="productname" type="hidden" value="<?php echo $_product->getName() ?> - <?php echo $this->__('Please notify me when this product gets back in stock.' ) ?>" />
		
		<button type="submit" id="notifyme" class="button notifyme" title="Notify me when back in stock">
			<span><?php echo $this->__('Notify me when back in stock' ) ?></span>
		</button>	
    	
    </p>
<?php endif; ?>

<?php if($_product->getResource()->getAttribute('sizing')->getFrontend()->getValue($_product) == "Yes"): //Check for Sizing Guide attribute ?>
<p class="sizing-button"><a href="javascript:;" id="sizingdialog">Sizing Guide</a></p>
<?php endif; ?>

<?php //echo $this->getPriceHtml($_product) ?>
